package com.shop.entity;
/*CREATE TABLE footprint (
`id` BIGINT(16) NOT NULL auto_increment PRIMARY KEY COMMENT '足迹编号（主键）',
`date` TIMESTAMP NOT NULL COMMENT '当前时间',
`goods_id` BIGINT(16)  COMMENT '关联商品编号',
`member_id` BIGINT(16) COMMENT '会员编号（外键）',
foreign key (`member_id`) references member(`id`)
)ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;*/
/**
 * 
 * <b>浏览记录<b>
 * @author 威 
 * <br>2018年1月2日 下午2:09:42 
 *
 */
public class Footprint {
	private Integer id ;
	private String date ;
	private Member member ;			//会员外键 	n:1
	private Integer goods_id ; 		//不是外键

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public Member getMember() {
		return member;
	}

	public void setMember(Member member) {
		this.member = member;
	}

	public Integer getGoods_id() {
		return goods_id;
	}

	public void setGoods_id(Integer goods_id) {
		this.goods_id = goods_id;
	}

	public String toString(){
		return "Footprint[id="+id+
				",date="+date+
				",memberId"+member.getId()+
				",goods_id"+goods_id+
				"]" ;
	}
}
